<?php

session_start();
//die("llega");
include((dirname(dirname(__FILE__)))."/functions/inc/util.inc.php");
include((dirname(dirname(__FILE__)))."/functions/inc/mydb.inc.php");
include((dirname(dirname(__FILE__)))."/functions/inc/seguridad.php");
include((dirname(dirname(__FILE__)))."/entidades/moto.class.php");



if(isset($_GET["id"]) && is_numeric($_GET["id"])){
    $db=new mydb();
    $moto=new moto($_GET["id"]);
    $moto->setest_moto_id(5);
    $moto->upd();
    
    echo "<script>
      location.reload(); 
    </script>";
}
?>
